<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>RegistryDLL: C:/Users/ojanhenr/winPeliSVN/winPeli/main.h tiedostoreferenssi</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generoinut Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pääsivu</span></a></li>
      <li><a href="namespaces.html"><span>Nimiavaruudet</span></a></li>
      <li><a href="annotated.html"><span>Luokat</span></a></li>
      <li class="current"><a href="files.html"><span>Tiedostot</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Tiedostolista</span></a></li>
      <li><a href="globals.html"><span>Tiedoston&nbsp;jäsenet</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Määrittelyt</a> &#124;
<a href="#func-members">Funktiot</a> &#124;
<a href="#var-members">Muuttujat</a>  </div>
  <div class="headertitle">
<h1>C:/Users/ojanhenr/winPeliSVN/winPeli/main.h tiedostoreferenssi</h1>  </div>
</div>
<div class="contents">
<code>#include &lt;cstdio&gt;</code><br/>
<code>#include &lt;windows.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="block_8h_source.html">block.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="snake_8h_source.html">snake.h</a>&quot;</code><br/>
<code>#include &quot;..\RegistryDLL\registry.h&quot;</code><br/>

<p><a href="main_8h_source.html">Siirry tämän tiedoston lähdekoodiin.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Määrittelyt</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ad9a96c13ef87186fa4d655d45604a20a">LANG</a>&nbsp;&nbsp;&nbsp;0</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Funktiot</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int WINAPI&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a661c2abc03926acfaeb93b4ae7db4943">WinMain</a> (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">DWORD WINAPI&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ac76a1b9aa7a0fccc30a94b8b491a03c4">UpdateThread</a> (LPVOID lpParam)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Muuttujat</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a269355668f3684c64057e02ac1e71964">g_szClassName</a> [] = &quot;myWindowClass&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">GAMEWIDTH</a> = 20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a97754c65b765fd279d70772246b14b90">GAMEHEIGHT</a> = 16</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = &quot;Vaikeusaste&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = &quot;Pisteet&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = &quot;PELI OHI&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">HWND&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a8a6b42a99015df6ab590a41558e7fdb5">hwindow</a> = NULL</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">COLORREF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#af29130239a567c36b12334ab25532dbc">colors</a> [4] = {RGB(20,20,150), RGB(150,20,20), RGB(20,150,20), RGB(192,192,192)}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">color</a> = 3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">difficulty</a> = 1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">score</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">highscore</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">direction</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">gameover</a> = false</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_block.html">Block</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">food</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_snake.html">Snake</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">snake</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Yksityiskohtainen selite</h2>
<dl class="author"><dt><b>Tekijä:</b></dt><dd>Henrik Ojanen </dd></dl>
<dl class="version"><dt><b>Versio:</b></dt><dd>1.0 </dd></dl>
<dl class="date"><dt><b>Päiväys:</b></dt><dd>6.4.2011 </dd></dl>
<hr/><h2>Määritysten dokumentointi</h2>
<a class="anchor" id="ad9a96c13ef87186fa4d655d45604a20a"></a><!-- doxytag: member="main.h::LANG" ref="ad9a96c13ef87186fa4d655d45604a20a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LANG&nbsp;&nbsp;&nbsp;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Funktioiden dokumentaatio</h2>
<a class="anchor" id="ac76a1b9aa7a0fccc30a94b8b491a03c4"></a><!-- doxytag: member="main.h::UpdateThread" ref="ac76a1b9aa7a0fccc30a94b8b491a03c4" args="(LPVOID lpParam)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DWORD WINAPI UpdateThread </td>
          <td>(</td>
          <td class="paramtype">LPVOID&nbsp;</td>
          <td class="paramname"> <em>lpParam</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Säiefunktio, joka hoitaa sovelluksen logiikan ja päivittää ruutua. </p>

</div>
</div>
<a class="anchor" id="a661c2abc03926acfaeb93b4ae7db4943"></a><!-- doxytag: member="main.h::WinMain" ref="a661c2abc03926acfaeb93b4ae7db4943" args="(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int WINAPI WinMain </td>
          <td>(</td>
          <td class="paramtype">HINSTANCE&nbsp;</td>
          <td class="paramname"> <em>hInstance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HINSTANCE&nbsp;</td>
          <td class="paramname"> <em>hPrevInstance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPSTR&nbsp;</td>
          <td class="paramname"> <em>lpCmdLine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nCmdShow</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Pääohjelma. </p>

</div>
</div>
<hr/><h2>Muuttujien dokumentaatio</h2>
<a class="anchor" id="a0fd02fb9277ffcb35a75066ffe95e8c7"></a><!-- doxytag: member="main.h::color" ref="a0fd02fb9277ffcb35a75066ffe95e8c7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">color</a> = 3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af29130239a567c36b12334ab25532dbc"></a><!-- doxytag: member="main.h::colors" ref="af29130239a567c36b12334ab25532dbc" args="[4]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">COLORREF <a class="el" href="main_8h.html#af29130239a567c36b12334ab25532dbc">colors</a>[4] = {RGB(20,20,150), RGB(150,20,20), RGB(20,150,20), RGB(192,192,192)}</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a016a5d341f375d13639c75bf5987fb23"></a><!-- doxytag: member="main.h::difficulty" ref="a016a5d341f375d13639c75bf5987fb23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">difficulty</a> = 1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a886d551d5381dc3e53f17825ffc51641"></a><!-- doxytag: member="main.h::direction" ref="a886d551d5381dc3e53f17825ffc51641" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">direction</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a62d8100f501558ad77ffb7ca29606347"></a><!-- doxytag: member="main.h::food" ref="a62d8100f501558ad77ffb7ca29606347" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_block.html">Block</a>* <a class="el" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">food</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a269355668f3684c64057e02ac1e71964"></a><!-- doxytag: member="main.h::g_szClassName" ref="a269355668f3684c64057e02ac1e71964" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="main_8h.html#a269355668f3684c64057e02ac1e71964">g_szClassName</a>[] = &quot;myWindowClass&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a97754c65b765fd279d70772246b14b90"></a><!-- doxytag: member="main.h::GAMEHEIGHT" ref="a97754c65b765fd279d70772246b14b90" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="main_8h.html#a97754c65b765fd279d70772246b14b90">GAMEHEIGHT</a> = 16</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5b43e44f713e3c93be6db1e65774c2db"></a><!-- doxytag: member="main.h::gameover" ref="a5b43e44f713e3c93be6db1e65774c2db" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">gameover</a> = false</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aba798b12fcdeffa10019873c8b6286bf"></a><!-- doxytag: member="main.h::GAMEWIDTH" ref="aba798b12fcdeffa10019873c8b6286bf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">GAMEWIDTH</a> = 20</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae5e9542e61196e233d289084760e4ab1"></a><!-- doxytag: member="main.h::highscore" ref="ae5e9542e61196e233d289084760e4ab1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">highscore</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8a6b42a99015df6ab590a41558e7fdb5"></a><!-- doxytag: member="main.h::hwindow" ref="a8a6b42a99015df6ab590a41558e7fdb5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HWND <a class="el" href="main_8h.html#a8a6b42a99015df6ab590a41558e7fdb5">hwindow</a> = NULL</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aef160b7437d94056f1dc59646cd5b87d"></a><!-- doxytag: member="main.h::score" ref="aef160b7437d94056f1dc59646cd5b87d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">score</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a408cd599ea288e5b692809edb69e65c2"></a><!-- doxytag: member="main.h::snake" ref="a408cd599ea288e5b692809edb69e65c2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_snake.html">Snake</a>* <a class="el" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">snake</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6318aa90c9ce25281d80862cc695261e"></a><!-- doxytag: member="main.h::TEXT_DIFFICULTY" ref="a6318aa90c9ce25281d80862cc695261e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = &quot;Vaikeusaste&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a09e0039a5f0f6c64c72198f4f65e12de"></a><!-- doxytag: member="main.h::TEXT_GAMEOVER" ref="a09e0039a5f0f6c64c72198f4f65e12de" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = &quot;PELI OHI&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f51dcf50b525d3658b1438052ecf7dd"></a><!-- doxytag: member="main.h::TEXT_SCORE" ref="a6f51dcf50b525d3658b1438052ecf7dd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = &quot;Pisteet&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generoinut projektille RegistryDLL Tue Apr 12 2011 10:05:31 &nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
